Let the bool options be set in the GUI if they're set in the "raw" GPSBabel.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 1 Mar 2010 04:22:28 +0000 (04:22 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 1 Mar 2010 04:22:28 +0000 (04:22 +0000)
gpsbabel/gui/optionsdlg.cpp

index 8034fd78b6c9fc603b4b812425c2fc0e92c27e19..b6564aaff12a73851862ca43915cb3ab87c95365 100644 (file)
@@ -1,5 +1,5 @@
 // -*- C++ -*-
-// $Id: optionsdlg.cpp,v 1.4 2009-11-02 20:38:02 robertl Exp $
+// $Id: optionsdlg.cpp,v 1.5 2010-03-01 04:22:28 robertl Exp $
 //------------------------------------------------------------------------
 //
 //  Copyright (C) 2009  S. Khai Mong <khai@mangrai.com>.
@@ -132,6 +132,10 @@ OptionsDlg::OptionsDlg(QWidget*parent,  const QString &fmtName, QList<FormatOpti
        break;
 
       case FormatOption::OPTbool:
+        // This is quirky.  It means that GPSBabel's bool options that default
+        // to true get turned on here, even if user turned them off on last
+        // exit.
+       checkBox->setChecked(getOptionValue(options,k).toBool());
        w = 0;
        break;